package srdb.migration.common;

import srdb.migration.Util.DBInfo;

import java.sql.Connection;
import java.sql.SQLException;

public abstract interface IMTKConnection {
    public abstract Connection getConnection();

    public abstract void setTransactionIsolationLevel(int paramInt)
            throws SQLException;

    public abstract void setAutoCommit(boolean paramBoolean)
            throws SQLException;

    public abstract boolean getAutoCommit()
            throws SQLException;

    public abstract void commit()
            throws SQLException;

    public abstract void rollback()
            throws SQLException;

    public abstract String getDBServerParamValue(String paramString)
            throws SQLException;

    //参数顺序：ip、端口、数据库名、用户名、密码
    public  abstract boolean preConnectDB(String[] parms)
            throws Exception;

}
